import React from 'react';
import {Meta} from '@storybook/react';
import createFromIconfontCN from '../src/lib/icon/createFromIconfontCN';

export default {
    title: '示例/IconFont',
} as Meta;

export const 所有参数 = (args: any) => {
    const IconFont = createFromIconfontCN('//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js');
    return <IconFont {...args} />;
};
所有参数.args = {type: 'icon-tuichu', style: {fill: 'red', width: '30px'}, className: 'good'};
export const 基本使用 = () => {
    const IconFont = createFromIconfontCN('//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js');
    return <IconFont type="icon-tuichu"/>;
}
